GXGetShapeColor
You can use theGXGetShapeColor
function to examine the color of an ink object associated with a shape.
gxColor *GXGetShapeColor(gxShape source, gxColor *data);
- source
- A reference to the shape whose ink you want the color of.
- data
- A pointer to a color structure. On return, the structure contains the color of the ink object associated with the shape.
- function result
- The color of the ink object associated with the source shape object.
DESCRIPTION
TheGXGetShapeColor
function returns, as its function result and in the structure pointed to by thedata
parameter, the color of the ink object associated with the shape object referenced in thesource
parameter.This call is equivalent to
myColor = GXGetInkColor(GXGetShapeInk(myShape),myColor);If the shape object reference or the pointer to the color structure isnil
, an error is posted, andnil
is returned as the function result.ERRORS, WARNINGS, AND NOTICES
Errors out_of_memory shape_is_nil color_is_nil SEE ALSO
To assign a color to the ink object associated with a shape, use theGXSetShapeColor
function, described next.To examine the color of an ink object directly, use the
GXGetInkColor
function, described on page 5-68.Ink colors are introduced in the section "Color" beginning on page 5-7, and described fully in the chapter "Colors and Color-Related Objects" in this book.
The
GXGetShapeInk
function is described in the chapter "Shape Objects" in this book.